import request from '@/utils/request'

// 查询食品机械列表
export function listIntFoodMachinery(query) {
  return request({
    url: '/internet/intFoodMachinery/list',
    method: 'get',
    params: query
  })
}

// 查询食品机械详细
export function getIntFoodMachinery(id) {
  return request({
    url: '/internet/intFoodMachinery/info/' + id,
    method: 'get'
  })
}

// 新增食品机械
export function addIntFoodMachinery(data) {
  return request({
    url: '/internet/intFoodMachinery',
    method: 'post',
    data: data
  })
}

// 修改食品机械
export function updateIntFoodMachinery(data) {
  return request({
    url: '/internet/intFoodMachinery',
    method: 'put',
    data: data
  })
}

// 删除食品机械
export function delIntFoodMachinery(id) {
  return request({
    url: '/internet/intFoodMachinery/' + id,
    method: 'delete'
  })
}
